const fs = require('fs');

fs.stat('./data.txt', (err, stats) => {
    console.log(stats.isDirectory());
    // => false
    console.log(stats.mtime);
    // => 2021-11-12T09:23:24.365Z
});

const now = new Date();
console.log(now.toUTCString());
// => Mon, 17 Jan 2022 14:44:53 GMT
console.log(now.toString());
// => Mon Jan 17 2022 22:59:28 GMT+0800 (中国标准时间)
